n=eval(input())
result=0
f=1
for i in range(1,n,2):
    result+=(1/i)*f
    f=-f
print(result)